From aadcbd395773c73402da456c306703ccd1592c6d Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Wed, 20 Apr 2011 03:58:34 +0000 Subject: [PATCH] Refactor need for duplicate private Title in FeedSMItem away by moving functionality to parent. --- includes/Feed.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/includes/Feed.php b/includes/Feed.php index 0ca419ed76..e48f3119c1 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -70,6 +70,15 @@ class FeedItem { $this->Comments = $Comments; } + /** + * Get the last touched timestamp + * + * @return String last-touched timestamp + */ + public function getLastMod() { + return $this->Title->getTouched(); + } + /** * Encode $string so that it can be safely embedded in a XML document * @@ -113,6 +122,16 @@ class FeedItem { return $this->xmlEncode( $this->Title ); } + /** + * Get the DB prefixed title + * + * @return String the prefixed title, with underscores and + * any interwiki and namespace prefixes + */ + public function getDBPrefixedTitle() { + return $this->Title->getPrefixedDBKey(), + } + /** * Get the URL of this item; already xml-encoded * @@ -401,7 +420,7 @@ class AtomFeed extends ChannelFeed { getComments() ) { ?>getComments() ?> - */ + */ } /** -- 2.20.1